package com.personnel_management.service.impl;

import com.personnel_management.dao.StaffDao;
import com.personnel_management.pojo.Staff;
import com.personnel_management.pojo.StaffVo;
import com.personnel_management.service.StaffService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class StaffServiceImpl implements StaffService {
    @Autowired
    private StaffDao staffDaoao;
    @Override
    public Integer addStaff(Staff staff) {
        return staffDaoao.addStaff(staff);
    }

    @Override
    public Integer deleteStaff(Integer id) {
        return staffDaoao.deleteStaff(id);
    }

    @Override
    public Integer setStaff(Staff staff) {
        return staffDaoao.setStaff(staff);
    }

    @Override
    public List<StaffVo> selectAllStaffs() {
        return staffDaoao.selectAllStaffs();
    }

    @Override
    public List<StaffVo> selectStaffs(StaffVo staff) {
        return staffDaoao.selectStaffs(staff);
    }

    @Override
    public Boolean findStaff(String phone) {
        return staffDaoao.findStaff(phone);
    }
}
